package com.dragon.modules.yuegou.service.marketing;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.marketing.HomeActivityEntity;
import com.dragon.modules.yuegou.model.marketing.HomeActivity;
import com.dragon.modules.yuegou.query.marketing.HomeActivityQuery;

/**
 * 首页弹框活动表 服务接口
 *
 * @author pbuilder generated
 * @date 2019-08-29 09:51:57
 * @version 2.0
 */
public interface HomeActivityService extends IService<HomeActivityEntity> {

    /**
     * 活动列表
     * @param page
     * @param query
     * @return
     */
    IPage<HomeActivity> search(PageRequest page, HomeActivityQuery query);

    /**
     * 禁用活动
     * @param id
     */
    void forbid(String id);

    /**
     * 保存活动
     * @param homeActivity
     */
    void saveHomeActivity(HomeActivity homeActivity);

    /**
     * 执行活动状态变更
     */
    void expireActivity();
}